package util;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;

public class TimeStamp {
    
    private static String TIME_FORMAT = "yyyy/MM/dd HH:mm:ss";
    
    public static String getTsString(Timestamp ts) {
        return new SimpleDateFormat(TIME_FORMAT).format(ts);
    }
    
    public static Timestamp getCurrentTs() {
        return new Timestamp(System.currentTimeMillis());
    }

}
